package game.web.dao.factory;

import game.web.dao.TicketDAO;
import game.web.dao.impl.TicketDAOImpl;
import projectx.core.base.ProjectXSystemException;

public class TicketFactory {

	private static TicketFactory factory = new TicketFactory();

	public static void setFactory(TicketFactory factory) {
		TicketFactory.factory = factory;
	}

	public static TicketFactory getFactory() {
		return factory;
	}

	public TicketDAO getDAO() throws ProjectXSystemException {
		return new TicketDAOImpl();
	}
}
